package com.fasttreatment.zzr.demo.activity;

import android.content.Intent;
import android.os.Bundle;

import com.android.androidlibrary.base.BaseActivity;
import com.android.androidlibrary.util.SPUtils;
import com.fasttreatment.zzr.demo.R;
import com.fasttreatment.zzr.demo.myrouter.UrlRouter;

/**
 * Created by zzr on 17/1/12.
 */

public class SplashActivity extends BaseActivity {
    @Override
    public void initData(Bundle savedInstanceState) {

        boolean isFirst=SPUtils.getInstance(this).getBoolean("isfirst",true);
        if(isFirst){
            UrlRouter.goGuide(context);
            SPUtils.getInstance(this).putBoolean("isfirst",false);
            finish();
        }else {
            UrlRouter.goMain(context);
            finish();
        }

    }

    @Override
    public void setListener() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_splash;
    }


}
